package caro.client.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 * Class PopupTable
 * @author Thanh Nhan
 * @Since Jul 17, 2011
 * @Version 1.0
 */
public class PopupTable extends JPopupMenu{
    private JMenuItem invite;
    private String userInvited;
    public PopupTable(String username){
        super();
        invite = new JMenuItem(Messages.getString("popup.invite"));
        this.add(invite);
        userInvited = username;
        
    }
    public void addInviteListener(ActionListener action){
        invite.addActionListener(action);
    }
    public String getUserInvited(){
        return userInvited;
    }
}
